
package com.boot.service;

import com.baomidou.mybatisplus.service.IService;
import com.boot.entity.Ad;
import com.boot.entity.Store;
import com.boot.entity.StoreVideo;
import com.boot.util.AdCommentsResult;
import com.boot.util.AdResult;
import com.boot.util.StoreMediaResult;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import javax.servlet.http.HttpServletRequest;


public interface StoreService extends IService<Store> {

	
	/**创建我的店
	 * @param store
	 * @return
	 */
	public AdResult createStore (Store store);
	
	/**修改我的店的信息
	 * @param store
	 * @return
	 */
	public AdResult updateStore(Store store,HttpServletRequest request,CommonsMultipartFile[] files);
	
	/**查找我的店
	 * @param user_id
	 * @return
	 */
	public AdCommentsResult getStore(String storeid,String user_id);

	/**修改我的店的信息不含新图片
	 * @param store
	 * @return
	 */
	public AdResult updateStore(Store store);
	
	/**修改我拍的事业的背景照片
	 * @param store
	 * @return
	 */
	public AdResult updateStoreIcon(Store store,HttpServletRequest request,CommonsMultipartFile file);
	
	/**
	 * 修改照片描述
	 * @param storeImage
	 * @return
	 */
	public AdResult updateImageDescription(String media_id ,String description,String type);

	/**
	 * 删除
	 */
	public AdResult deleteStoreImage(String image_id,String type);

	/**
	 * 移至最前
	 * @param id
	 * @return
	 */
	public AdResult moveToFirst(String image_id,String type);

	/**
	 * 上传图片
	 * @param storeImage
	 * @param request
	 * @param files
	 * @return
	 */
	public StoreMediaResult uploadMediaImage(HttpServletRequest request, CommonsMultipartFile[] files);

	/**
	 * 上传视频
	 * @param storeVideo
	 * @param request
	 * @param files
	 * @return
	 */
	public StoreMediaResult uploadMediaVideo(StoreVideo storeVideo, HttpServletRequest request,
			CommonsMultipartFile[] files);
}
 